<?php
class AppModel extends Model {
	public function __construct() {
		if (Configure::read('System.useSoftDelete')) {
			if (!isset($this->actsAs['SoftDeletable'])) {
				$this->actsAs['SoftDeletable'] = array('field' => 'delete', 'field_date' => 'deleted');
			}
			// put the following line in the model if you whant that model to fi found
			//public $actsAs = array('SoftDeletable' => array('field' => 'delete', 'field_date' => 'deleted', 'find' => false));
		}
		parent::__construct();
	}
}
